package com.comando.action;

import java.util.Map;

import org.apache.log4j.Logger;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.beans.factory.annotation.Autowired;

import com.comando.base.BaseAction;
import com.comando.dto.UserDto;
import com.comando.pub.Json;
import com.comando.pub.SessionInfo;
import com.comando.service.LoginService;
import com.comando.service.UserService;
import com.comando.util.ContextUtil;
import com.opensymphony.xwork2.ModelDriven;

/**
 * 首页ACTION
 * 
 */
@Namespace("/")
@Action(value = "indexAction", results = {
		//@Result(name = "index", location = "/index.jsp")
		})
public class IndexAction extends BaseAction implements ModelDriven<UserDto>,
		SessionAware {

	private static final Logger logger = Logger.getLogger(IndexAction.class);

	private Map mySession;

	//private UserService userService;
	//private LoginService logService;

	@Override
	public void setSession(Map<String, Object> session) {
		this.mySession = session;

	}

	private UserDto userDto = new UserDto();

	public UserDto getModel() {
		return userDto;
	}

	public String index() throws Exception {
		return "index";
	}
	

}
